package com.xbongbong.pro.performanceset.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import java.util.Objects;

/**
 * 考核产品列表
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/5/22 9:48
 * @since v1.0
 */
@Getter
@Setter
public class PerformanceSetProductListDTO extends BaseDTO {
    private static final long serialVersionUID = -6521507477070521506L;
    /**
     * 页码
     */
    private Integer page = 1;
    /**
     * 分页大小
     */
    private Integer pageSize = 20;
    /**
     * 模糊搜索
     */
    private String nameLike;

    public void setPage(Integer page) {
        if (Objects.isNull(page)){
            return;
        }
        this.page = page;
    }

    public void setPageSize(Integer pageSize) {
        if (Objects.isNull(pageSize)){
            return;
        }
        this.pageSize = pageSize;
    }
}
